#pragma once
#include "UIEvent.h"

class MouseEvent : public UIEvent
{
public:
	enum MOUSE_BUTTON {NONE, MIDDLE, LEFT, RIGHT};
protected:
	int			m_iX;
	int			m_iY;
	bool		m_isLButtonDown;
	bool		m_isRButtonDown;
	bool		m_isMButtonDown;
public:
					MouseEvent(UIControl* p_pSender);
	virtual			~MouseEvent();
	int				getX();
	int				getY();
	bool			isMouseDown(MOUSE_BUTTON p_mb);

	virtual void	mouseUp(int p_iX, int p_iY, MOUSE_BUTTON p_mb = NONE);
	virtual void	mouseDown(int p_iX, int p_iY, MOUSE_BUTTON p_mb = NONE);
};
